package org.nvframe.component.state;

import org.newdawn.slick.geom.Vector2f;
import org.nvframe.entity.Entity;
import org.nvframe.util.settings.SettingsObj;

/**
 * 
 * @author Nik Van Looy
 */
public class NormalPosition extends AbstractPosition {

	public NormalPosition(String id, Entity owner, SettingsObj settings) {
		super(id, owner);

		position = new Vector2f(0, 0);
		
		width = settings.getInt("width", 10);
		height = settings.getInt("height", 10);

		scale = 1;
		direction = 0;
	}
	
	public Vector2f getXY() {
		return position.copy();
	}

	public void setXY(Vector2f position) {
		this.position = position.copy();
	}

	public float getDirection() {
		return direction;
	}

	public void setDirection(float direction) {
		this.direction = direction;
	}
	
}
